package com.hopes.bizz.hazard.common.constant.enums;

import com.hopes.bizz.hazard.common.api.feign.RemoteHazardDictService;
import com.hopes.boss.admin.api.resolver.EnumResolver;
import com.hopes.boss.admin.api.resolver.IDict;

/**
 * @author daijie
 * @version 1.0
 * @date 2023/10/27 14:07
 * @Description:
 */
public enum HazardModDictEnum implements EnumResolver<RemoteHazardDictService> {
    /**
     * 数采仪
     */
    rtu("listRtuAsDict"),

    /**
     * 监控因子
     */
    factor_config("listFactorConfigAsDict"),

    ;

    private final String methodName;

    private Class<? extends IDict> remoteClass = RemoteHazardDictService.class;

    HazardModDictEnum(String methodName) {
        this.methodName = methodName;
    }

    HazardModDictEnum(String methodName, Class<? extends IDict> remoteClass) {
        this.methodName = methodName;
        this.remoteClass = remoteClass;
    }

    @Override
    public String getType() {
        return this.name();
    }

    @Override
    public String getMethodName() {
        return methodName;
    }

    @Override
    public Class<? extends IDict> getRemoteClass() {
        return remoteClass;
    }
}
